Higher level courses such as the Evolutionary Computing course are a great place to sharpen your programming skills by the need to write high-quality code to solve more complex problems than encountered in introductory programming courses. As such, please take some time to read through the section below which corresponds to your preferred programming language. Besides making you a better coder and your code more maintainable, this will also facilitate grading your code, something that will endear you to your TAs which is always a smart thing to do! It will also minimize the risk of losing points related to implementation.
You are strongly encouraged to follow the Google C++ Style Guide.
Pick either camel case or lower with underscores. Pick either 2 spaces or 4 spaces or tabs. Pick one way to align brackets. ONE WAY.
Best case, this is redundant. Worst case it's a downright lie if you change the type later on.
If your code looks more like algebra than English, you might be doing it wrong.
White space should delineate new ideas. Double space English papers, not code.
Code does not lie, but comments can. Also, why waste your own time?
Assume the person reading may know less than you.
If you copy and paste and then change one of the copies, you might forget to change the rest of the copies... making your TA's lives miserable.
If you write your solutions all in one file, you aren't loving yourself (or your TA's).
You are strongly encouraged to follow the Microsoft C# Documentation.
Please follow the casing guidelines provided in the above documentation. This entails using Pascal case for classes and functions and camel case for variables and other keywords.
Best case, this is redundant. Worst case it's a downright lie if you change the type later on.
If your code looks more like algebra than English, you might be doing it wrong.
White space should delineate new ideas. Double space English papers, not code.
Code does not lie, but comments can. Also, why waste your own time?
Assume the person reading may know less than you.
If you copy and paste and then change one of the copies, you might forget to change the rest of the copies... making your TA's lives miserable.
If you write your solutions all in one file, you aren't loving yourself (or your TA's).
You are strongly encouraged to follow the Google Java Style Guide.
Pick either camel case or lower with underscores. Pick either 2 spaces or 4 spaces or tabs. Pick one way to align brackets. ONE WAY.
Best case, this is redundant. Worst case it's a downright lie if you change the type later on.
If your code looks more like algebra than English, you might be doing it wrong.
White space should delineate new ideas. Double space English papers, not code.
Code does not lie, but comments can. Also, why waste your own time?
Assume the person reading may know less than you.
If you copy and paste and then change one of the copies, you might forget to change the rest of the copies... making your TA's lives miserable.
If you write your solutions all in one file, you aren't loving yourself (or your TA's).
You are strongly encouraged to follow the Python PEP 8 Style Guide.
Pick either camel case or lower with underscores. Use Pascal case for classes. Pick either 2 spaces or 4 spaces or tabs (luckily Python won't let you use a mixture). PICK ONE.
Best case, this is redundant. Worst case it's a downright lie if you change the type later on. Also, how dare you defile such a beautiful untyped language with your filthy types!
If your code looks more like algebra than English, you might be doing it wrong.
White space should delineate new ideas. Double space English papers, not code.
Code does not lie, but comments can. Also, why waste your own time?
Assume the person reading may know less than you.
If you copy and paste and then change one of the copies, you might forget to change the rest of the copies... making your TA's lives miserable.
If you write your solutions all in one file, you aren't loving yourself (or your TA's).
For those of you programming in Python, you should write your code "The Pythonic Way." Alas, this way of writing code is more of a culture than a strict standard and the closest thing to a guide may be the Zen of Python